//
//  LoginvView.swift
//  imprint
//
//  Created by 小柠檬🍋 on 2025/1/12.
//

import SwiftUI

/**
 *  toast
 */
struct Toastiew: View {
    var text: String

    var body: some View {
        VStack {
            Text(text)
                .font(.subheadline)
                .foregroundColor(.secondary)
        }.padding()
            .background(.bgDialog)
            .cornerRadius(30)
            .shadow(color: Color.black.opacity(0.2), radius: 10, x: 0, y: 2)
    }
}

#Preview {
    Toastiew(text: "我在厕所")
}
